/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 26727
 * Date: 2024-04-04
 * Time: 9:42
 */
public class Child extends Parent{
    public void method() {
       // super.a = 1; //编译报错,父类private成员只能在同一包同一类即父类中访问
        super.b = 2;//父类中默认访问权限修饰成员在相同包子类中可以直接访问
        super.c = 3;//父类中成员protected在相同包子类中可以直接访问
        super.d = 4;//父类中成员public在相同包子类中可以直接访问
    }
}
